<?php

namespace App\Http\Controllers\Goods;

use App\Http\Controllers\BasicInterfaceController;
use App\Http\Requests\Goods\CartItemsRequest;
use App\Http\Service\Goods\CartItemsService;

class CartItemsController implements BasicInterfaceController
{

    public function getList()
    {

    }

    public function getSelect()
    {

    }

    public function getSelectHasPage()
    {

    }

    public function getInfo($id)
    {

    }

    public function create()
    {
        $data = request()->only('goods_id','quantity');
        (new CartItemsRequest())->check($data);
        (new CartItemsService())->create($data);
    }

    public function fakeDelete($id)
    {
        (new CartItemsService())->fakeDelete($id);
    }

    public function fakeDeleteByIds($ids)
    {

    }

    public function delete()
    {

    }

    public function update($id)
    {

    }
}
